;
define(function() {
	/**
	 * MThemes 主题组件
	 */
	var MThemes = function() {
		return new MThemes.init();
	};

	var pt = MThemes.prototype;

	MThemes.init = function() {};

	MThemes.init.prototype = pt;
	
	/**
	 * 设置颜色
	 * @param {Array | String} colos 颜色
	 */
	pt.setColors = function(colos) {
		if(colos instanceof Array) {
			this.colos = colos;
		} else {
			this.colos = [colos];
		}
	}

	/**
	 * 获得颜色
	 * @param {Object} index 索引值
	 */
	pt.getColor = function(index) {
		if(this.colos) {
			return this.colos[index];
		};
	};
	
	/**
	 * 构造主题
	 * @param {Object} array 颜色数组
	 */
	MThemes.buildTheme = function(array) {
		var theme = new MThemes();
		theme.setColors(array);
		return theme;
	};
	
	//通用主题
	MThemes.THEME_00001 = MThemes.buildTheme(["#b6b6ee","#a2a2f2","#7f7fee","#8168cf","#8166b9"]);
	MThemes.THEME_00002 = MThemes.buildTheme(["#ff005b","#c6005b","#90005b","#5b005b","#2a005b"]);
	MThemes.THEME_00003 = MThemes.buildTheme(["#ff008e","#d5008e","#ab008e","#82008e","#5b008e"]);
	MThemes.THEME_00004 = MThemes.buildTheme(["#045a67","#007a8c","#06a287","#3ac26b","#c6e269"]);
	MThemes.THEME_00005 = MThemes.buildTheme(["#d9c1ff","#cbc1ff","#c1c7ff","#c1d7ff","#c1e6ff"]);
	MThemes.THEME_00006 = MThemes.buildTheme(["#93c2ff","#93a7ff","#9893ff","#b293ff","#cd93ff"]);
	MThemes.THEME_00007 = MThemes.buildTheme(["#251421","#522d37","#645046","#6e745e","#618b73"]);
	MThemes.THEME_00008 = MThemes.buildTheme(["#c3d5fb","#c5c7e2","#c7baca","#cab0b2","#cca49b"]);
	MThemes.THEME_00009 = MThemes.buildTheme(["#b3d1c7","#caffd9","#574e57","#9d4a54","#f02550"]);
	MThemes.THEME_00010 = MThemes.buildTheme(["#d7b97e","#4f7b29","#14505b","#290f56","#0c0b1e"]);
	MThemes.THEME_00011 = MThemes.buildTheme(["#27273d","#3d3d6d","#555586","#556d86","#6d869f"]);
	MThemes.THEME_00012 = MThemes.buildTheme(["#ebda9e","#6d5930","#399198","#7ec6cd","#a8f6f4"]);
	MThemes.THEME_00013 = MThemes.buildTheme(["#a9e3cc","#6ca9a1","#337075","#1f072a","#3b1434"]);
	MThemes.THEME_00014 = MThemes.buildTheme(["#1acacf","#1e94cf","#1758d6","#202ccc","#3516a7"]);
	MThemes.THEME_00015 = MThemes.buildTheme(["#a4cfb1","#7aaba1","#847dc3","#7d99c3","#7dbdc4"]);
	MThemes.THEME_00016 = MThemes.buildTheme(["#27283b","#3e3c6a","#686595","#aebdd5","#daffeb"]);
	MThemes.THEME_00017 = MThemes.buildTheme(["#adb9cd","#b5c7f7","#bfd8fe","#fbfbf8","#e0fbff"]);
	MThemes.THEME_00018 = MThemes.buildTheme(["#579770","#44817f","#486183","#51446e","#562e55"]);
	MThemes.THEME_00019 = MThemes.buildTheme(["#2a6874","#245966","#204958","#152c3d","#0c1123"]);
	MThemes.THEME_00020 = MThemes.buildTheme(["#679f92","#8b9e94","#b29d96","#d89b98","#ff9a9a"]);
	MThemes.THEME_00021 = MThemes.buildTheme(["#656246","#686551","#6a695f","#6a8578","#699880"]);
	MThemes.THEME_00022 = MThemes.buildTheme(["#844495","#704495","#5c4495","#484495","#445495"]);
	MThemes.THEME_00023 = MThemes.buildTheme(["#2b2e2e","#005460","#008295","#00acc6","#00dbfc"]);
	MThemes.THEME_00024 = MThemes.buildTheme(["#010509","#a9efff","#3bfef5","#0be4f4","#00050a"]);
	MThemes.THEME_00025 = MThemes.buildTheme(["#fffd80","#ffe39e","#fecabf","#feb1df","#fd98ff"]);
	MThemes.THEME_00026 = MThemes.buildTheme(["#909090","#ab9dab","#c6abc6","#e3b8e3","#ffc6ff"]);
	MThemes.THEME_00027 = MThemes.buildTheme(["#14b2b1","#589eac","#a28ca7","#f07aa3","#5c9da8"]);
	MThemes.THEME_00028 = MThemes.buildTheme(["#b0f529","#cc7942","#e70b5d","#c51fac","#a333ff"]);
	MThemes.THEME_00029 = MThemes.buildTheme(["#92dada","#9cc6c6","#a1b1b1","#9f9a9a","#a88c8c"]);
	MThemes.THEME_00030 = MThemes.buildTheme(["#dbf9d4","#b1e5a4","#7ed7a1","#9d9084","#be4b62"]);
	MThemes.THEME_00031 = MThemes.buildTheme(["#906557","#868466","#79b87f","#72cf89","#ffdac1"]);
	MThemes.THEME_00032 = MThemes.buildTheme(["#5191a6","#4c6e91","#425076","#383256","#191522"]);
	MThemes.THEME_00033 = MThemes.buildTheme(["#91c187","#938874","#905461","#9a3b58","#0b010b"]);
	MThemes.THEME_00034 = MThemes.buildTheme(["#2c5153","#336d4f","#938137","#da824e","#e0495a"]);
	MThemes.THEME_00035 = MThemes.buildTheme(["#141c2c","#3e454d","#607274","#75908c","#743149"]);
	
	
	//扁平化主题
	MThemes.THEME_FLATTEN_00001 = MThemes.buildTheme(["#1abc9c","#2ecc71","#3498db","#9b59b6","#34495e"]);
	MThemes.THEME_FLATTEN_00002 = MThemes.buildTheme(["#16a085","#27ae60","#2980b9","#8e44ad","#2c3e50"]);
	MThemes.THEME_FLATTEN_00003 = MThemes.buildTheme(["#f1c40f","#e67e22","#e74c3c","#ecf0f1","#95a5a6"]);
	MThemes.THEME_FLATTEN_00004 = MThemes.buildTheme(["#f39c12","#d35400","#c0392b","#bdc3c7","#7f8c8d"]);
	MThemes.THEME_FLATTEN_00005 = MThemes.buildTheme(["#55efc4","#81ecec","#74b9ff","#a29bfe","#dfe6e9"]);
	MThemes.THEME_FLATTEN_00006 = MThemes.buildTheme(["#00b894","#00cec9","#0984e3","#6c5ce7","#b2bec3"]);
	MThemes.THEME_FLATTEN_00007 = MThemes.buildTheme(["#ffeaa7","#fab1a0","#ff7675","#fd79a8","#636e72"]);
	MThemes.THEME_FLATTEN_00008 = MThemes.buildTheme(["#fdcb6e","#e17055","#d63031","#e84393","#2d3436"]);
	MThemes.THEME_FLATTEN_00009 = MThemes.buildTheme(["#f6e58d","#ffbe76","#ff7979","#badc58","#dff9fb"]);
	MThemes.THEME_FLATTEN_00010 = MThemes.buildTheme(["#f9ca24","#f0932b","#eb4d4b","#6ab04c","#c7ecee"]);
	MThemes.THEME_FLATTEN_00011 = MThemes.buildTheme(["#7ed6df","#e056fd","#686de0","#30336b","#95afc0"]);
	MThemes.THEME_FLATTEN_00012 = MThemes.buildTheme(["#22a6b3","#be2edd","#4834d4","#130f40","#535c68"]);
	MThemes.THEME_FLATTEN_00013 = MThemes.buildTheme(["#00a8ff","#9c88ff","#fbc531","#4cd137","#487eb0"]);
	MThemes.THEME_FLATTEN_00014 = MThemes.buildTheme(["#0097e6","#8c7ae6","#e1b12c","#44bd32","#40739e"]);
	MThemes.THEME_FLATTEN_00015 = MThemes.buildTheme(["#e84118","#f5f6fa","#7f8fa6","#273c75","#353b48"]);
	MThemes.THEME_FLATTEN_00016 = MThemes.buildTheme(["#c23616","#dcdde1","#718093","#192a56","#2f3640"]);
	MThemes.THEME_FLATTEN_00017 = MThemes.buildTheme(["#ff9ff3","#feca57","#ff6b6b","#48dbfb","#1dd1a1"]);
	MThemes.THEME_FLATTEN_00018 = MThemes.buildTheme(["#f368e0","#ff9f43","#ee5253","#0abde3","#10ac84"]);
	MThemes.THEME_FLATTEN_00019 = MThemes.buildTheme(["#00d2d3","#54a0ff","#5f27cd","#c8d6e5","#576574"]);
	MThemes.THEME_FLATTEN_00020 = MThemes.buildTheme(["#01a3a4","#2e86de","#341f97","#8395a7","#222f3e"]);
	MThemes.THEME_FLATTEN_00021 = MThemes.buildTheme(["#eccc68","#ff7f50","#ff6b81","#a4b0be","#57606f"]);
	MThemes.THEME_FLATTEN_00022 = MThemes.buildTheme(["#ffa502","#ff6348","#ff4757","#747d8c","#2f3542"]);
	MThemes.THEME_FLATTEN_00023 = MThemes.buildTheme(["#7bed9f","#70a1ff","#5352ed","#ffffff","#dfe4ea"]);
	MThemes.THEME_FLATTEN_00024 = MThemes.buildTheme(["#2ed573","#1e90ff","#3742fa","#f1f2f6","#ced6e0"]);
	MThemes.THEME_FLATTEN_00025 = MThemes.buildTheme(["#FFC312","#C4E538","#12CBC4","#FDA7DF","#ED4C67"]);
	MThemes.THEME_FLATTEN_00026 = MThemes.buildTheme(["#F79F1F","#A3CB38","#1289A7","#D980FA","#B53471"]);
	MThemes.THEME_FLATTEN_00027 = MThemes.buildTheme(["#EE5A24","#009432","#0652DD","#9980FA","#833471"]);
	MThemes.THEME_FLATTEN_00028 = MThemes.buildTheme(["#EA2027","#006266","#1B1464","#5758BB","#6F1E51"]);
	MThemes.THEME_FLATTEN_00029 = MThemes.buildTheme(["#fad390","#f8c291","#6a89cc","#82ccdd","#b8e994"]);
	MThemes.THEME_FLATTEN_00030 = MThemes.buildTheme(["#f6b93b","#e55039","#4a69bd","#60a3bc","#78e08f"]);
	MThemes.THEME_FLATTEN_00031 = MThemes.buildTheme(["#fa983a","#eb2f06","#1e3799","#3c6382","#38ada9"]);
	MThemes.THEME_FLATTEN_00032 = MThemes.buildTheme(["#e58e26","#b71540","#0c2461","#0a3d62","#079992"]);
	MThemes.THEME_FLATTEN_00033 = MThemes.buildTheme(["#fc5c65","#fd9644","#fed330","#26de81","#2bcbba"]);
	MThemes.THEME_FLATTEN_00034 = MThemes.buildTheme(["#eb3b5a","#fa8231","#f7b731","#20bf6b","#0fb9b1"]);
	MThemes.THEME_FLATTEN_00035 = MThemes.buildTheme(["#45aaf2","#4b7bec","#a55eea","#d1d8e0","#778ca3"]);
	MThemes.THEME_FLATTEN_00036 = MThemes.buildTheme(["#2d98da","#3867d6","#8854d0","#a5b1c2","#4b6584"]);
	MThemes.THEME_FLATTEN_00037 = MThemes.buildTheme(["#FEA47F","#25CCF7","#EAB543","#55E6C1","#CAD3C8"]);
	MThemes.THEME_FLATTEN_00038 = MThemes.buildTheme(["#F97F51","#1B9CFC","#F8EFBA","#58B19F","#2C3A47"]);
	MThemes.THEME_FLATTEN_00039 = MThemes.buildTheme(["#B33771","#3B3B98","#FD7272","#9AECDB","#D6A2E8"]);
	MThemes.THEME_FLATTEN_00040 = MThemes.buildTheme(["#6D214F","#182C61","#FC427B","#BDC581","#82589F"]);
	MThemes.THEME_FLATTEN_00041 = MThemes.buildTheme(["#f3a683","#f7d794","#778beb","#e77f67","#cf6a87"]);
	MThemes.THEME_FLATTEN_00042 = MThemes.buildTheme(["#f19066","#f5cd79","#546de5","#e15f41","#c44569"]);
	MThemes.THEME_FLATTEN_00043 = MThemes.buildTheme(["#786fa6","#f8a5c2","#63cdda","#ea8685","#596275"]);
	MThemes.THEME_FLATTEN_00044 = MThemes.buildTheme(["#574b90","#f78fb3","#3dc1d3","#e66767","#303952"]);
	MThemes.THEME_FLATTEN_00045 = MThemes.buildTheme(["#40407a","#706fd3","#f7f1e3","#34ace0","#33d9b2"]);
	MThemes.THEME_FLATTEN_00046 = MThemes.buildTheme(["#2c2c54","#474787","#aaa69d","#227093","#218c74"]);
	MThemes.THEME_FLATTEN_00047 = MThemes.buildTheme(["#ff5252","#ff793f","#d1ccc0","#ffb142","#ffda79"]);
	MThemes.THEME_FLATTEN_00048 = MThemes.buildTheme(["#b33939","#cd6133","#84817a","#cc8e35","#ccae62"]);
	MThemes.THEME_FLATTEN_00049 = MThemes.buildTheme(["#ef5777","#575fcf","#4bcffa","#34e7e4","#0be881"]);
	MThemes.THEME_FLATTEN_00050 = MThemes.buildTheme(["#f53b57","#3c40c6","#0fbcf9","#00d8d6","#05c46b"]);
	MThemes.THEME_FLATTEN_00051 = MThemes.buildTheme(["#ffc048","#ffdd59","#ff5e57","#d2dae2","#485460"]);
	MThemes.THEME_FLATTEN_00052 = MThemes.buildTheme(["#ffa801","#ffd32a","#ff3f34","#808e9b","#1e272e"]);
	MThemes.THEME_FLATTEN_00053 = MThemes.buildTheme(["#cd84f1","#ffcccc","#ff4d4d","#ffaf40","#fffa65"]);
	MThemes.THEME_FLATTEN_00054 = MThemes.buildTheme(["#c56cf0","#ffb8b8","#ff3838","#ff9f1a","#fff200"]);
	MThemes.THEME_FLATTEN_00055 = MThemes.buildTheme(["#32ff7e","#7efff5","#18dcff","#7d5fff","#4b4b4b"]);
	MThemes.THEME_FLATTEN_00056 = MThemes.buildTheme(["#3ae374","#67e6dc","#17c0eb","#7158e2","#3d3d3d"]);
	return MThemes;
});